
import { RouteView } from '../layouts'

export default [{
  path: '/schedule',
  component: () => import('../views/schedule/ScheduleList.vue'),
  meta: { title: '调度中心', keepAlive: true },
  children: [
    {
      path: '/schedule/edit',
      component: () => import('../views/task/TaskEdit.vue'),
      meta: { title: '修改', code: 'edit' }
    },
    {
      meta: { title: '新增', code: 'add' }
    },
    {
      meta: { title: '删除', code: 'delete' }
    },
    {
      path: '/schedule/view',
      component: () => import('../views/schedule/ScheduleView.vue'),
      meta: { title: '定时任务', code: 'view' },
      children: [{
        path: '/schedule/detail',
        component: () => import('../views/schedule/ScheduleDetail.vue'),
        meta: { title: '任务详情', code: 'detail' }
      }, {
        path: '/schedule/vedit',
        component: () => import('../views/schedule/ScheduleViewEdit.vue'),
        meta: { title: '任务详情', code: 'vedit' }
      }]
    },
    // 以下为组件
    {
      path: '/schedule/basic',
      component: () => import('../views/schedule/components/ScheduleBasic.vue'),
      meta: { title: '基础信息', icon: 'basic' }
    },
    {
      path: '/schedule/recipient',
      component: () => import('../views/schedule/components/ScheduleRecipient.vue'),
      meta: { title: '任务接收', icon: 'recipient' }
    },
    {
      path: '/schedule/type',
      component: () => import('../views/schedule/components/ScheduleType.vue'),
      meta: { title: '任务类型', icon: 'type' }
    }
  ]
}]
